package com.example.common.Controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope//时时刷新配置信息
@Slf4j  //日志  log.info("登录日志测试：");
@RequestMapping("/common")
@RequiredArgsConstructor
@Api(value = "通用模块接口测试", description = "通用接口")
public class CommTestController {

    @ApiOperation("测试接口")
    @GetMapping("/test")
    public String test()
    {
        log.info("登录日志测试：");
        return "success";
    }
}
